package cn.iocoder.yudao.module.system.controller.admin.tradinghours.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY;

@Schema(description = "管理后台 - 营业时间列表 Request VO")
@Data
public class SystemTradingHoursListReqVO {

    @Schema(description = "类型（0-每周营业时间，1-特殊日期营业时间）", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "类型不能为空")
    private Integer type;

//    @NotNull(message = "模块不能为空")
    private Integer module = 0;


    @Schema(description = "开始日期", example = "2023-10-01")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY)
    private LocalDate startDate;
    
    @Schema(description = "结束日期", example = "2023-10-31")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY)
    private LocalDate endDate;
} 